package org.jeecg.modules.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysScope;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 作用域管理
 * @Author: jeecg-boot
 * @Date:   2019-10-05
 * @Version: V1.0
 */
public interface SysScopeMapper extends BaseMapper<SysScope> {

    List<SysScope> findByName(@Param("scopeName") String scopeName,@Param("scopeId") String scopeId);

    SysScope getByScopeType(@Param("scopeType") Integer scopeType);

    List<SysScope> getByIds(@Param("ids") List<String> ids);


    //------------------------------------S端-START--------------------------------------------------
    @SqlParser(filter = true)
    List<SysScope> queryServerScopeTreeList(String tenantId);
    @SqlParser(filter = true)
    IPage<SysScope> findServerPage(Page<SysScope> page,@Param("bean") SysScope sysScope);
    @SqlParser(filter = true)
    void serverSave(@Param("bean") SysScope sysScope);

    //------------------------------------S端-END----------------------------------------------------
}
